//
//  SCHelper.h
//  Shuaiche
//
//  Created by zzs on 2018/5/3.
//  Copyright © 2018年 zzs. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface SCHelper : NSObject

//+ (BOOL)inputView:(UIView *)inputView shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string;
+ (BOOL)customInputView:(UIView *)inputView shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string;
+ (BOOL)inputView:(UIView *)inputView shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string maxLength:(NSInteger)maxLength;
+ (BOOL)numberInputView:(UIView *)inputView shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string;
+ (BOOL)numberRateInputView:(UIView *)inputView shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string;
+ (BOOL)inputView:(UIView<UITextInput> *)inputView shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string maxLength:(NSInteger)maxLength completion:(void(^)(NSString *result,UIView<UITextInput> *inputView))completion;
//+ (BOOL)telphoneView:(UIView<UITextInput> *)inputView shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string maxLength:(NSInteger)maxLength;
+ (NSString *)handleEmojiString:(NSString *)emojiString maxLength:(NSInteger)maxLength;
+ (BOOL)isValidatedStockWarningTextField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string maxLength:(NSInteger)maxLength;
+ (void)stockWarningTextField:(UITextField *)textField maxLength:(NSInteger)maxLength;
+ (BOOL)isValidateNumberInputView:(UIView<UITextInput> *)inputView shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string maxLength:(NSInteger)maxLength;
+ (BOOL)isMobileNumber:(NSString *)mobileNum;
+ (BOOL)isFixedTelephone:(NSString *)phoneNum;
+ (BOOL)isValidatedNumber:(NSString *)number;
+ (BOOL)isValidatedFloatNumber:(NSString *)floatNumber;
+ (BOOL)stringContainsEmojiBeyondOther:(NSString *)string;
+ (BOOL)stringContainsEmoji:(NSString *)string;
+ (NSString *)filterEmoji:(NSString *)string;

@end
